package com.gismore.demo.security;

import lombok.AllArgsConstructor;
import lombok.Data;
import org.apache.shiro.authc.AuthenticationToken;

import java.util.Map;

/**
 * Created by lei on 2017/5/26.
 */
@Data
@AllArgsConstructor
public class StatelessToken implements AuthenticationToken {

	private String username;
	private String password;
	private Map<String,?> params;

	@Override
	public Object getPrincipal() {
		return username;
	}

	@Override
	public Object getCredentials() {
		return password;
	}
}
